package com.jack;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.discovery.PatternServiceRouteMapper;
import org.springframework.context.annotation.Bean;

import com.jack.filter.PreRequestLogZuulFilter;

@SpringBootApplication
@EnableZuulProxy
public class EurekaServerApplication {

	@Bean
	public PreRequestLogZuulFilter zuulFilter(){
		return new PreRequestLogZuulFilter();
	}
	
	public static void main(String[] args) throws Exception {
		SpringApplication.run(EurekaServerApplication.class, args);
	}

}
